package com.qlylkj.lbk.model.api

import com.qlylkj.lbk.wxapi.WXUserInfo
import com.qlylkj.lbk.wxapi.WXAccessTokenInfo
import retrofit2.http.GET
import retrofit2.http.QueryMap

/**
 * @author dgs
 */
interface WeChatApi {

    @GET("https://api.weixin.qq.com/sns/oauth2/access_token?")
    suspend fun getAccessTokenAsync(@QueryMap options: MutableMap<String, Any>): WXAccessTokenInfo

    @GET("https://api.weixin.qq.com/sns/userinfo?")
    suspend fun getWXUserInfoAsync(@QueryMap options: MutableMap<String, Any>): WXUserInfo
}
